package com.addcn.pushlibrary.fcm;

import android.content.Context;
import android.util.Log;
import androidx.annotation.NonNull;
import com.addcn.pushlibrary.BuildConfig;
import com.addcn.pushlibrary.LPush;
import com.google.android.gms.tasks.OnCompleteListener;
import com.google.android.gms.tasks.Task;
import com.google.firebase.iid.FirebaseInstanceId;
import com.google.firebase.iid.InstanceIdResult;

/**
 * author:luwenbo
 * created on date : 2019-05-15
 * content:
 * describe:
 */
public class LFcmManager {
    public static String token = "";
    public static void init(Context context){
//        FirebaseInstanceId.getInstance().getInstanceId().addOnCompleteListener(new OnCompleteListener<InstanceIdResult>() {
//            @Override
//            public void onComplete(@NonNull Task<InstanceIdResult> task) {
//                Log.i("LFcmManager","isSuccessful:"+task.isSuccessful());
//                if (task.isSuccessful()){
//                    token = task.getResult().getToken();
//                    Log.i("LFcmManager","token:"+token+"/");
//                }
//            }
//        });
    }


}
